package com.gxc.healthfood.mapper;

import com.gxc.healthfood.entity.Foods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 食物Mapper接口
 * @author zhouxin
 * @since 2024-05-16
 */
@Mapper
public interface FoodsMapper extends BaseMapper<Foods> {
    
    /**
     * 查询食物列表（包含营养成分）
     * @param params 查询参数
     * @return 食物列表
     */
    List<Map<String, Object>> selectFoodsWithNutrients(@Param("params") Map<String, Object> params);
}




